----------------------------------------------------------
--	[Weapon skill]: Ukko's Fury
--	[Author      ]: dandruffshampoo
--	[Description ]: Delivers a twofold attack that slows target. Chance of critical hit varies with TP.
----------------------------------------------------------
-- From wiki.ffxiclopedia.org
-- Ukko's Fury
-- Great Axe weapon skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), Maschu +1, Maschu +2.
-- Aligned with the Light Gorget, Breeze Gorget & Thunder Gorget.
-- Aligned with the Light Belt, Breeze Belt & Thunder Belt.-- Element: None
-- Modifiers: STR:60%
-- 100%TP 200%TP 300%TP
-- 2.00 2.00 2.00
-----------------------------------

require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");
-----------------------------------

function OnUseWeaponSkill(player, target, wsID)

numHits = 2;
ftp100 = 2; ftp200 = 2; ftp300 = 2	;
str_wsc = 0.6; dex_wsc = 0.0; vit_wsc = 0.0; agi_wsc = 0.0; int_wsc = 0.0; mnd_wsc = 0.0; chr_wsc = 0.0;
crit100 = 0.2; crit200 = 0.35; crit300 = 0.55;
canCrit = true;
acc100 = 1.25; acc200= 1.33; acc300= 1.5;
atkmulti = 1;

--------------------
-- PROJECT MALICE - UKKO'S ADDITIONAL EFFECT SLOW
-- This is not meant to emulate the true Ukko's Fury, since we don't have access to retail.
-- Wiki has little information on it, so I'm just making assumptions.
--------------------
---- Assuming it adds effect of capped Slow I
---- Capped Slow is power 30.
--	power = 30;
---- Duration is one minute
--	duration = 60;
---- Removes target's haste.
--	haste = target:getStatusEffect(EFFECT_HASTE);
--	if(haste ~= nil) then
--		target:delStatusEffect(EFFECT_HASTE);
--	end
---- Checks to make sure it isn't going to overwrite a stronger slow.
--	slow = target:getStatusEffect(EFFECT_SLOW);
---- If current slow is weaker or equal to Ukko's, overwrite it.
--	if(slow == nil) then
--		target:addStatusEffect(EFFECT_SLOW,power,0,duration);
--	elseif(slow <= 	power) then
--		target:delStatusEffect(EFFECT_SLOW);
--		target:addStatusEffect(EFFECT_SLOW,power,0,duration);
--	end
---------------------

damage = doPhysicalWeaponskill(player,target,numHits,str_wsc,dex_wsc,vit_wsc,agi_wsc,int_wsc,mnd_wsc,chr_wsc,canCrit,crit100,crit200,crit300,acc100,acc200,acc300,atkmulti);

return damage;

end